package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * @description: 新增员工
     * @author: zhouzhijie
     * @date: 2023/11/11 17:45
     * @param: [employeeDTO]
     * @return:
     **/
    void save(EmployeeDTO employeeDTO);

    /**
     * @description: 员工分页查询
     * @author: zhouzhijie
     * @date: 2023/11/11 21:19
     * @param: [employeePageQueryDTO]
     * @return: 
     **/
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * @description: 启用禁用员工账号
     * @author: zhouzhijie
     * @date: 2023/11/12 10:40
     * @param: [status, id]
     * @return: 
     **/
    void startOrStop(Integer status, Long id);

    /**
     * @description: 根据id查询员工信息
     * @author: zhouzhijie
     * @date: 2023/11/12 15:59
     * @param: [id]
     * @return: 
     **/
    Employee getById(Long id);

    /**
     * @description: 编辑员工信息
     * @author: zhouzhijie
     * @date: 2023/11/12 16:16
     * @param: [employeeDTO]
     * @return:
     **/
    void update(EmployeeDTO employeeDTO);
}
